package cn.lili.controller.feign;

import cn.lili.modules.member.entity.dos.User;
import cn.lili.modules.promotion.client.CouponActivityClient;
import cn.lili.modules.promotion.service.CouponActivityService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ftyy
 * @date: 2022-01-13 18:16
 * @description: 优惠券活动实现类
 */
@RestController
@RequiredArgsConstructor
public class CouponActivityFeignController implements CouponActivityClient {

    private final CouponActivityService couponActivityService;


    @Override
    public void registered(User member) {
        couponActivityService.registered(member);
    }

    @Override
    public void specifyCoupon(String couponActivityId) {
        couponActivityService.specifyCoupon(couponActivityId);
    }
}
